package mapper;

import org.apache.ibatis.annotations.Param;

import entity.Answer;
import entity.Choose;
import entity.Question;
import entity.Survey;
import entity.User;

public interface UserMapper {
	public User Login(@Param("user") User user);

	public int Register(@Param("user") User user);

	public Survey querySurvey(@Param("queryId") Integer queryId);
	
	public Choose[] queryChoose(@Param("queryChId") Integer queryChId);
	
	public Question[] queryQuestion(@Param("queryQuId") Integer queryQuId);
	
	public int countQuestion(@Param("countQuId") Integer countQuId);
	
	public int countChoose(@Param("countChId") Integer countChId);
	
	public boolean addAnswer(@Param("answer") Answer answer);
}
